package demo.people;





public class Grade {
		private String sname="";
		private String cname="";
		private String grade="";
		private String cid="";
		private String id="";

		public Grade() {
		}

		public Grade(String cid, String cname,String id, String sname, String  grade) {
			super();
			this.sname = sname;
			this.cname = cname;
			this.grade = grade;
			this.cid=cid;
			this.id=id;
		}
        public String getId(){
        	return id;
        }
		public String getSname() {
			return sname;
		}

		

		public String getCname() {
			return cname;
		}

		public void setCname(String password) {
			this.cname = password;
		}

		public String getGrade() {
			return grade;
		}

		public void setGrade(String room) {
			this.grade = room;
		}
		public void setSname(String id) {
			this.sname = id;
		}
		public String getCid(){
			return cid;
		}
		public void setCid(String tname){
			this.cid=tname;
		}

		
		public String toString() {
			StringBuffer stringBuffer = new StringBuffer();
			stringBuffer.append(String.format("%s, %s, %s\n", sname, cname, cid));
			return stringBuffer.toString();
		}
	}

	

